<template>
  <view class="list flex-direction-column">
    <view class="item flex-direction-column" v-for="item in props.list" :key="item.id" @click="tools.navTo('/pagesA/home/query?id=' + item.id)">
      <view class="title one-line">{{ item.name }}</view>
      <view class="desc flex-direction-column">
        <view class="time flex">
          <image src="/static/icon/06.png"></image>
          <text>{{ item.province }}·{{ item.city }}</text>
        </view>
        <view class="time flex">
          <image src="/static/icon/05.png"></image>
          <text>{{ item.start_time }}</text>
        </view>
      </view>
    </view>
  </view>
</template>

<script setup lang="ts">
import { PropType } from 'vue'
import { Tlist } from '@/typings/list'
import tools from '@/utils/tools'
const props = defineProps({
  list: {
    type: Array as PropType<Tlist['item'][]>
  }
})
</script>

<style lang="scss" scoped>
.list {
  z-index: 10;
  .item {
    width: 100%;
    padding: 22rpx;
    background-color: #fff;
    margin-top: 20rpx;
    .title {
      height: 42rpx;
      width: 712rpx;
      font-size: 30rpx;
      line-height: 42rpx;
    }
    .desc {
      margin-top: 8rpx;
      .time {
        line-height: 20px;
        image {
          width: 26rpx;
          height: 26rpx;
          margin-right: 10rpx;
        }
        text {
          font-size: 26rpx;
          color: #777777;
        }
      }
    }
  }
}
</style>
